#include "mainwindow.h"
#include "ui_mainwindow.h"

#include "wizardpages/tasknewwizard.h"

#include <QLabel>

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_actionNewTask_triggered()
{
    TaskNewWizard * wizard = new TaskNewWizard(this);

    wizard->exec();
}

void MainWindow::on_taskAreaTabWidget_tabCloseRequested(int index)
{
    ui->taskAreaTabWidget->removeTab(index);
    //ui->taskAreaTabWidget->widget(index)->close();
}
